package com.harmonyos.samples.bean.code;

public class MethodBlockLocation {

    private int startPosition;

    private int endPosition;

    public MethodBlockLocation() {
    }

    public MethodBlockLocation(int startPosition, int endPosition) {
        this.startPosition = startPosition;
        this.endPosition = endPosition;
    }

    public boolean isEmpty() {
        return startPosition == -1 || endPosition == -1;
    }

    public int getStartPosition() {
        return startPosition;
    }

    public void setStartPosition(int startPosition) {
        this.startPosition = startPosition;
    }

    public int getEndPosition() {
        return endPosition;
    }

    public void setEndPosition(int endPosition) {
        this.endPosition = endPosition;
    }
}
